implemented est/tests/fixed estimate issue
optimized estimate, est test