possible fix to stackOverFlow