add normalize and its unittest