getting error while reading second argument