now able to return messages in subsequent rows. however clear function not working