handles the undefined