working static no seg faults.