removed print function