take sizes from stdin for hsize