added getFraction function for all levels