fixed problem
code is still a little messy but will continue programming the other activities before going back to clean it up