changed function decleration