thanks for the replies

it was a 16f877 i tried first, i just tried with a 16f877a and it worked fine!?

i will stick to the a version from now