fixed func params issue