fixing magic number