implementing LS handler