edited get all method

returns list