fix min calculation
check tab size before fetching the data for min
rename atom