replaced checkArguments with checkIntList and getComparison methods to improve organization