updated bug in code
removed debug code