fix apopintment stuff