added generic in code template