amount parameter added to the roll function