made final changes to this program. everything should work... a little bit.