correct order and mark executable