added resize to inputGenerator and changed interface