minor fix on sub