updated main for Adam