udpated resizer