complete basic fusion code