revise logic code