works for non-existing elements