fixed indentation and comments on new methods