Rewrite in a better way ugly constant valu