changed slight parsing of caps