would be nice to accept BOOL as well