fix function print