testing and added logs