created functions LAWL