minor work on if