added console ouput