declare local variable inline for less variable duplication