fixed the apges