slightly refactored styles