unused two method are deleted from stack.java