style: fix missing commas
chore: extract & cache commonly accessed variables