change to work with xtyle framework