removed the bugs. This works now.