changed function in app