changing size() for 2.0 compatability