added dropout method