use bitwise or, instead of ceil