check before source