for only works on arrays