completes code for LA.c needs linux test