remove superfluous function
asserts
fix use of isString