added parsing alarm func