debug and resolve all bugs found