fixed migrations and pointers for comparisons with noam