error handling
some styling