added main
discarded calosf version