adjusted edit function for new salarry formats