refactored with colors and not ansi-colors