changes before implementing add record functions