fixing mean selection