modifying for online version