now it also works for one element