defaulting command in calculaterecordtoadd function