* updated type getter to get type based on frequency