obtaining some statistics