simplified the fibonacci code