reshape callback.