added add1() function