implement condition to hide arrows