removed cruft
made readgens const