main and reg_mvmt added