add method condition