fixed some stuff with pauls method