fixed indentation and lint errors