refactor user_id.to_i statement.create