css styles made more efficient