simplified form since it does not accept newlines