added default for 'm' in logicle function