added books opened check function, not finished yet