modify model to handle binary data