refactored lambda out of css method