fixed up coding a bit.