use variables to replace the magic number