clean up coin code