untested log. reg. implemented