added statistics
design changes