fixed nullpointer when no argument was given