add condition not jump twice