changed function style