fixed direction in to function