added imv() and updating clock