add angles count as parameter