changed send according to interface