main drop of code