added console log statement