modify the method for coding