added if statements for conversions and console.logs