using valueOf  instead of new instance

using valueOf  instead of new instance to save memory and get faster the process.