fix compilation
use boolean as return value if possible