working on main block