updated marks to not use lambda