fix for magic number issue