before stored procedures