started over from scratch. This works
fixed close and tested other functions