modified generator for size from args