working on record search