slight code update