added add function
added add function