machine add and edit is working