declaring PIP at the beginning