added checking angle sampling before starting the whole process