debugging fixed