main add coin logic completed