do block updates
update main.cpp - need to profile code