use get instead of pop