updated stored procedures