sldr and main