fix broken adapter method