impletement if tag. but, not completed.