replaced magic number 2048 with constant