added backend function for issue #27