replacing more instances of height calculation with class-level methods