added condition for BSD