added extension fn