print functionality added