simplify retrieving ID's
fix var reassign test
fix ast -> sast translation

just need tests now