fixed some silly bugs
idea relation working