runs w/o crash but not correct