printing logging to found out what happing