worked with step 7, deleting messages works - cleaned code a bit