close issue type.toLowerCase() #2