added if0 for #3