first implementation of get