Added corner0 and corner1
Replaced corner0 and corner1 by size