for pic logic update