fixed friend declaration that caused #3 (for true this time, hopefully)