remove an extra space
move the message.ack to outside the retry block