removed print calls