changing variable types for comparisson