update changes, fix levels of blocks, functions handle all parameters