make arrow placement smarter