adapted to change in  dependency