size function is ok