speeding up + logging