parses one record.. working on availability function