updated to use ensemble entropy