removed debugging cout statements