prepareprintk ,refactor from 1 bigger function to 18 functions