finish writing this affirm stuff