implementation of Brooks-Corey