changed the debugging method from using "alert" to "conole.log"