added missing return statements