direct solution