only do math on non ios