implemented some stuff.