organization logic code