W and H generated in sc.hpp, tested