fix in case mean_subtract argument is missing