changed function calling