changes to operationLogic.c