added check for gas amount from TR
git memory working