changed function1