added glue functions