added function getBedString