final corrected php...