removed printing function