replaced for borders by variables
perhaps slightest performance gain ;)