glue code is working.possible major bugs