add parseFromFormat method