add float type for avg