moved instructions under main cont