fix error
remove unused function
push non-keyed functions to params array