lock on update(save) implemented; params moved to constants