removed console statement reporting undefined