pretty much finished with wierd compiler errors