wrote trivial stored procedure