embedd and range functions added