not crashing logic