fix pal stuff