tried add function