fixes #10 prevent reassignment of variables with new type