initial solution for resize