repetitive function call removed