updated for records limit