added ref
changed positions