added testing procedure