fixed some more notices and strict standard errors