close #5 functions are working, needs cleaning