modify error handling
output color