added some determine stuff.