fixed check styles and indentation