added constants and fixed smesh input index error