fixed the POUT function