fix to compile each hash type