save entry and master functions