quick fix for duplicated output