getOnlyElement added
using getOnlyElement