some preprocesing to reduce the number of lines
Merge branch 'master' of github.com:mindausai/AV3