#293 #294 add setter and getter function for sourceId and targetId to it