Hack solution for triangle