add functions to dynamic object array