minute changes to logic