errors have plagued this assignment, but it is functioning alright at the moment