sinple minded h function