added functionality to delete statements