logic adjustment