added a console log for testing