should probably also check it ends with ";"