C optimization

shape