added Color and other math functions