Added bohate

fixed preview function