functions being called on drop