Removed duplicate decleration of toColor