added drawing weighted lines