replaced r by getIdentifier apporach