fixed some weirdness with instances