updated some on abc and adjadded main