take out stack functions because they dont work