added setting of position