remove clear calls in favor of create

explicit casts for boolean checks that were failing
on 1 and 2