removing static refs