implementation of displaying loop closing added
no comment