debugged new method