better code for droplets