bug correction when no type is given
more doc