remove main and get ready to use it in smallgear