move droplep functions to functions.php