changed methods interface for getting records