only compile methods that return bool and void.