cleaning up the sprocs