finished most of the dim code