few optimizations to lead form