correct order in return values