add normalize & tacking code