Fixed Hard Coding

the coding has been fixed!