added check for user stack