added console function