help to add element OOP function in my function