update resize interface, simplify usage