A friend gave me a part of the code he had written when i asked for help your right though im going to add a thanks