input coins working