added get_position.m