adds complete functionality to LA.c for simple case