adding sam's code