task h with some flaws