finished debugging and testing

fiex errors