changed get() to be simpler