unused method
Todo find another way to do this, too complicated