move magic number to settings