alternative branches in put, get and remove implemented