adds inject method prototype