added 'as string'
more type checking