removed a little bit of code from the project I grabed this code from