thanks for that been trying to do this for a while . now problem solved.