work on inference