dealt with nan error
element indicator now works