fixed output for 7