added format verification