replace .size() calls with constant