added add and inc functionality