main parts with INT done