updated code

added extern variables for using different bus lines