now optimized version works, if you get the order(number) without an encapuslated originalMessage, you have to get it first from unacknowledgedMessages