memoized some values
style change