fixed some errors that arose after revisiting old app