fix print method