fixed density vector update
working