got rid of unnecessary logging x 2