made the program clearer hopefully kinda.