stage3- debugging