fix for static declarations