added logs to console