fixing parameters not defiened