improve get() method