fixed output statement on inference