Thanks mr . wrenchbender ret.
it was the switch .the head lights are working now but the instrument lights are not working so I guess I'll look for a new switch.Thanks again for the quick reply.