fixed indentation issues (no tabs, using 2 spaces per indent)