need to fix chicken and egg header problem