twice function call removed