updated delete stack to a select for consistency