add dynamic resize capability