save log in int, not in float