reimplemented stemLoop prediction