triv works almost fine