pass logic fix