added if and loop in sass