add condition for unavailable files