nearly finished debuggin