adding the return statement for empty case