simpler style checks when rendering for better performance
cleanup