added console print for debugging