removed debugging, final version, i hope.