achieve the function in a stupid way.