improve size estimation