changed code indent to 2 spaces for consistency