trying to fix but somehow don't think its just PHP