removed duplicated php snippet