update print function
deleted and commented not used functions