lots of vars in this func have non-std names