take size form sample avoid another sql call