removed print and printing to STDERR