loading records in array