rewrite a bit thing in part 2