changed everything to php