fix print function, wrong usage of options