changed direction into cool number mod function