rendering queue cleaning function implemented