fixed bug in sim... tested wrappers