fix breaking function params