moved static registers to front