using int instead of bool in the interface