removed all reference to mean and changed to fragment