removed println stmts which were for debugging