Create sub

non-optimized