added lik function for testing