found bug with function args