changed function header