bug fixed params and defaults