frequency calculations implemented.