fixed get all function