fixed miscounts due to capitalization