Debugged

current variables are Sh and Sv