added decimal mode