this is a better method of doing so