made pic conditional