get and put integer