working wiht both paths