directions and scale from data