finilize REQSIZE assumtion and bug fix in main.cpp