fixed output for Nadia's output version, now gives zeros