working on adding dynamic resize